package org.eiahe.hr.salary.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.eiahe.hr.salary.domain.SalaryAdjustmentApplication;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 调薪申请视图对象 hr_salary_adjustment_application
 *
 * @author zhangnn
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = SalaryAdjustmentApplication.class)
public class SalaryAdjustmentApplicationVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 调薪申请ID
     */
    @ExcelProperty(value = "调薪申请ID")
    private Long applicationId;

    /**
     * 租户ID
     */
    @ExcelProperty(value = "租户ID")
    private String tenantId;

    /**
     * 工号
     */
    @ExcelProperty(value = "工号")
    private String employeeNo;
    @ExcelProperty(value = "姓名")
    private String employeeName;

    /**
     * 调薪原因
     */
    @ExcelProperty(value = "调薪原因")
    private String adjustmentReason;

    /**
     * 原薪资
     */
    @ExcelProperty(value = "原薪资")
    private BigDecimal originalSalary;

    /**
     * 新薪资
     */
    @ExcelProperty(value = "新薪资")
    private BigDecimal newSalary;

    /**
     * 生效时间
     */
    @ExcelProperty(value = "生效时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date effectiveTime;

    /**
     * 审批状态(0待审批 1审批通过 2审批拒绝)
     */
    @ExcelProperty(value = "审批状态")
    private String approvalStatus;

    /**
     * 审批人
     */
    @ExcelProperty(value = "审批人")
    private String approver;

    /**
     * 审批时间
     */
    @ExcelProperty(value = "审批时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date approvalTime;

    /**
     * 调薪依据(如绩效评分表ID)
     */
    @ExcelProperty(value = "调薪依据")
    private String adjustmentBasis;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新时间
     */
    @ExcelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
